package com.itheima.app.service.impl;

import com.itheima.app.mapper.SetmealMapper;
import com.itheima.app.service.SetmealService;
import com.itheima.health.model.pojos.Setmeal;
import com.itheima.health.model.vos.SetmealVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SetmealServiceImpl implements SetmealService {
        @Autowired
        private SetmealMapper setmealMapper;


    @Override
    public List<SetmealVO> getAllSetmeal() {
        return setmealMapper.getAllSetmeal();
    }

    @Override
    public Setmeal findById(Integer id) {
       return setmealMapper.findById(id);
    }

 /*   @Override
    public Setmeal findById(Integer id) {
       return setmealMapper.findById(id);
    }*/
}


